Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 8489f4531f74403eaa026008f4c1a8a96eb80616


Parents : eac300c
Author : Sudo-Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-01-10T18:35:15-06:00

Add Wine support for building Windows executables and all Electron apps in Taskfile.yml

Changes

1 files changed, 19 insertions(+), 0 deletions(-)


Diff

diff --git a/Taskfile.yml b/Taskfile.yml
index 6f6ccee1..cf58bda6 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -7,6 +7,8 @@ vars:
sh: echo "${NPM:-pnpm}"
LEGACY_ELECTRON_VERSION:
sh: echo "${LEGACY_ELECTRON_VERSION:-30.0.8}"
+ WINE_PYTHON:
+ sh: echo "${WINE_PYTHON:-wine python}"
DOCKER_COMPOSE_CMD:
sh: echo "${DOCKER_COMPOSE_CMD:-docker compose}"
DOCKER_COMPOSE_FILE:
@@ -224,6 +226,14 @@ tasks:
- "PLATFORM=win32 {{.NPM}} run build-backend"
- "{{.NPM}} run dist -- --win portable"
+ build-exe-wine:
+ desc: Build Windows portable executable using Wine
+ deps: [build-frontend]
+ cmds:
+ - "{{.NPM}} run electron-postinstall"
+ - "PLATFORM=win32 PYTHON_CMD='{{.WINE_PYTHON}}' {{.NPM}} run build-backend"
+ - "{{.NPM}} run dist -- --win portable"
+
build-electron-linux:
desc: Build Linux Electron app with prebuilt backend
deps: [build-frontend]
@@ -264,6 +274,15 @@ tasks:
- "PLATFORM=win32 {{.NPM}} run build-backend"
- "{{.NPM}} run dist -- --linux AppImage deb --win portable nsis"
+ build-electron-all-wine:
+ desc: Build all Electron apps using Wine for Windows backend
+ deps: [build-frontend]
+ cmds:
+ - "{{.NPM}} run electron-postinstall"
+ - "PLATFORM=linux {{.NPM}} run build-backend"
+ - "PLATFORM=win32 PYTHON_CMD='{{.WINE_PYTHON}}' {{.NPM}} run build-backend"
+ - "{{.NPM}} run dist -- --linux AppImage deb --win portable nsis"
+
dist:
desc: Build distribution (defaults to AppImage)
cmds:


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────